
<!DOCTYPE HTML>
<html lang="en" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>3.1 聊天栏 · 命令进阶</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="cb.html" />
    
    
    <link rel="prev" href="command.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    引言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../concepts/concepts.html">
            
                <a href="../concepts/concepts.html">
            
                    
                    1 基础概念
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../concepts/space.html">
            
                <a href="../concepts/space.html">
            
                    
                    1.1 坐标、朝向、区块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../concepts/time.html">
            
                <a href="../concepts/time.html">
            
                    
                    1.2 时间、顺序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../concepts/execution.html">
            
                <a href="../concepts/execution.html">
            
                    
                    1.3 命令执行
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../concepts/selector/selector.html">
            
                <a href="../concepts/selector/selector.html">
            
                    
                    1.4 目标选择器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../concepts/stats.html">
            
                <a href="../concepts/stats.html">
            
                    
                    1.5 命令执行统计
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../common-format/common-format.html">
            
                <a href="../common-format/common-format.html">
            
                    
                    2 常用命令格式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../common-format/json/json.html">
            
                <a href="../common-format/json/json.html">
            
                    
                    2.1 JSON文本
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" data-path="../common-format/json/type.html">
            
                <a href="../common-format/json/type.html">
            
                    
                    2.1.1 JSON文本类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.2" data-path="../common-format/json/formatting.html">
            
                <a href="../common-format/json/formatting.html">
            
                    
                    2.1.2 JSON样式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.3" data-path="../common-format/json/event.html">
            
                <a href="../common-format/json/event.html">
            
                    
                    2.1.3 JSON事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.4" data-path="../common-format/json/array.html">
            
                <a href="../common-format/json/array.html">
            
                    
                    2.1.4 JSON分项
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.5" data-path="../common-format/json/sign-book.html">
            
                <a href="../common-format/json/sign-book.html">
            
                    
                    2.1.5 告示牌及成书
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.6" data-path="../common-format/json/other.html">
            
                <a href="../common-format/json/other.html">
            
                    
                    2.1.6 杂项
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.7" data-path="../common-format/json/keys.html">
            
                <a href="../common-format/json/keys.html">
            
                    
                    2.1.A 附录: keybind列表
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../common-format/nbt/nbt.html">
            
                <a href="../common-format/nbt/nbt.html">
            
                    
                    2.2 NBT及结构
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.2.1" data-path="../common-format/nbt/simple.html">
            
                <a href="../common-format/nbt/simple.html">
            
                    
                    2.2.1 基本类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.2" data-path="../common-format/nbt/example.html">
            
                <a href="../common-format/nbt/example.html">
            
                    
                    2.2.2 NBT实战
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="command.html">
            
                <a href="command.html">
            
                    
                    3 如何执行命令
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.4.1" data-path="chat.html">
            
                <a href="chat.html">
            
                    
                    3.1 聊天栏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="cb.html">
            
                <a href="cb.html">
            
                    
                    3.2 命令方块简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="function.html">
            
                <a href="function.html">
            
                    
                    3.3 命令函数
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../scoreboard/scoreboard.html">
            
                <a href="../scoreboard/scoreboard.html">
            
                    
                    4 记分板
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../scoreboard/objective.html">
            
                <a href="../scoreboard/objective.html">
            
                    
                    4.1 记分板变量
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../scoreboard/team.html">
            
                <a href="../scoreboard/team.html">
            
                    
                    4.2 记分板队伍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../scoreboard/tag.html">
            
                <a href="../scoreboard/tag.html">
            
                    
                    4.3 记分板标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../scoreboard/command.html">
            
                <a href="../scoreboard/command.html">
            
                    
                    4.4 记分板命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../scoreboard/example.html">
            
                <a href="../scoreboard/example.html">
            
                    
                    4.5 记分板实战
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.5.1" data-path="../scoreboard/examples/example1.html">
            
                <a href="../scoreboard/examples/example1.html">
            
                    
                    4.5.1 循环电路|记分板的基础操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5.2" data-path="../scoreboard/examples/example2.html">
            
                <a href="../scoreboard/examples/example2.html">
            
                    
                    4.5.2 自定义命令|stats与记分板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5.3" data-path="../scoreboard/examples/example3.html">
            
                <a href="../scoreboard/examples/example3.html">
            
                    
                    4.5.3 击杀率|operation与准则
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5.4" data-path="../scoreboard/examples/example4.html">
            
                <a href="../scoreboard/examples/example4.html">
            
                    
                    4.5.4 漂亮的排名|显示与队伍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5.5" data-path="../scoreboard/examples/example5.html">
            
                <a href="../scoreboard/examples/example5.html">
            
                    
                    4.5.5 简单登入系统|function与综合运用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../logic/logic.html">
            
                <a href="../logic/logic.html">
            
                    
                    5 基础逻辑
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../logic/enum.html">
            
                <a href="../logic/enum.html">
            
                    
                    5.1 穷举
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../logic/score.html">
            
                <a href="../logic/score.html">
            
                    
                    5.2 分数处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../logic/bool.html">
            
                <a href="../logic/bool.html">
            
                    
                    5.3 布尔逻辑
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../logic/loop.html">
            
                <a href="../logic/loop.html">
            
                    
                    5.4 循环
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../logic/event.html">
            
                <a href="../logic/event.html">
            
                    
                    5.5 事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../logic/marker.html">
            
                <a href="../logic/marker.html">
            
                    
                    5.6 实体Marker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../logic/execute.html">
            
                <a href="../logic/execute.html">
            
                    
                     5.7 execute进阶
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../practise/practise.html">
            
                <a href="../practise/practise.html">
            
                    
                    6 实战
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../practise/objects.html">
            
                <a href="../practise/objects.html">
            
                    
                    6.1 游戏内物件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../practise/test-debug.html">
            
                <a href="../practise/test-debug.html">
            
                    
                    6.2 命令系统测试及调试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../practise/examples/examples.html">
            
                <a href="../practise/examples/examples.html">
            
                    
                    6.3 更多命令系统例子
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.3.1" data-path="../practise/examples/furnace.html">
            
                <a href="../practise/examples/furnace.html">
            
                    
                    6.3.1 熔炉过热系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.2" data-path="../practise/examples/badapple.html">
            
                <a href="../practise/examples/badapple.html">
            
                    
                    6.3.2 毒苹果
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.3" data-path="../practise/examples/rain.html">
            
                <a href="../practise/examples/rain.html">
            
                    
                    6.3.3 下雨检测
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.4" data-path="../practise/examples/chest_replace.html">
            
                <a href="../practise/examples/chest_replace.html">
            
                    
                    6.3.4 替换方块实体
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.5" data-path="../practise/examples/skill.html">
            
                <a href="../practise/examples/skill.html">
            
                    
                    6.3.5 技能系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.6" data-path="../practise/examples/crown.html">
            
                <a href="../practise/examples/crown.html">
            
                    
                    6.3.6 皇冠系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.7" data-path="../practise/examples/blackhole.html">
            
                <a href="../practise/examples/blackhole.html">
            
                    
                    6.3.7 黑洞
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.8" data-path="../practise/examples/login.html">
            
                <a href="../practise/examples/login.html">
            
                    
                    6.3.8 登录系统
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../data-files/data-files.html">
            
                <a href="../data-files/data-files.html">
            
                    
                    7 游戏文件的使用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../data-files/resourcepack/resourcepack.html">
            
                <a href="../data-files/resourcepack/resourcepack.html">
            
                    
                    7.1 资源包
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1.1" data-path="../data-files/resourcepack/textures.html">
            
                <a href="../data-files/resourcepack/textures.html">
            
                    
                    7.1.1 材质
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.1.2" data-path="../data-files/resourcepack/models.html">
            
                <a href="../data-files/resourcepack/models.html">
            
                    
                    7.1.2 模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.1.3" data-path="../data-files/resourcepack/sound.html">
            
                <a href="../data-files/resourcepack/sound.html">
            
                    
                    7.1.3 声音
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../data-files/loot-table.html">
            
                <a href="../data-files/loot-table.html">
            
                    
                    7.2 Loot table
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../data-files/advancements/advancements.html">
            
                <a href="../data-files/advancements/advancements.html">
            
                    
                    7.3 Advancement
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.3.1" data-path="../data-files/advancements/examples.html">
            
                <a href="../data-files/advancements/examples.html">
            
                    
                    Advancement例子
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" >
            
                <span>
            
                    
                    8 杂项
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" >
            
                <a target="_blank" href="https://commandtutorials.neocities.org/">
            
                    
                    8.1 其他资源
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../misc/success.html">
            
                <a href="../misc/success.html">
            
                    
                    8.2 如何成为一个成功的CBer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../misc/question.html">
            
                <a href="../misc/question.html">
            
                    
                    8.3 问问题的技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../misc/quotes.html">
            
                <a href="../misc/quotes.html">
            
                    
                    8.4 其他CBer的建言
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >3.1 聊天栏</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x804A;&#x5929;&#x680F;">&#x804A;&#x5929;&#x680F;</h1>
<p><img src="images/1.png" alt=""></p>
<p>&#x8FD9;&#x4E2A;&#x5728;&#x5C4F;&#x5E55;&#x5DE6;&#x4E0B;&#x89D2;&#x7684;&#x5C31;&#x662F;&#x804A;&#x5929;&#x680F;&#x3002;</p>
<p>&#x4E0A;&#x65B9;&#x90E8;&#x5206;&#x4E3A;&#x804A;&#x5929;&#x8BB0;&#x5F55;&#xFF0C;&#x5B9E;&#x9645;&#x4E0A;&#x9664;&#x4E86;&#x73A9;&#x5BB6;&#x4E4B;&#x95F4;&#x7684;&#x804A;&#x5929;&#x4EE5;&#x5916;&#x4E5F;&#x4F1A;&#x8BB0;&#x5F55;&#x5F88;&#x591A;&#x4E0D;&#x540C;&#x8D44;&#x8BAF;&#xFF0C;&#x5982;&#x547D;&#x4EE4;&#x6267;&#x884C;&#x4FE1;&#x606F;&#x3001;&#x9519;&#x8BEF;&#xFF0C;<code>tellraw</code>&#x547D;&#x4EE4;&#x4FE1;&#x606F;&#x7B49;&#x7B49;&#x3002;<br>&#x5F53;&#x4FE1;&#x606F;&#x51FA;&#x73B0;&#x4E86;&#x4E00;&#x6BB5;&#x65F6;&#x95F4;&#x4E4B;&#x540E;&#x5C31;&#x4F1A;&#x6162;&#x6162;&#x6D88;&#x5931;&#xFF0C;&#x5982;&#x679C;&#x6D88;&#x606F;&#x8FC7;&#x591A;&#x3001;&#x8FC7;&#x957F;&#x4E5F;&#x4F1A;&#x5BFC;&#x81F4;&#x4E4B;&#x524D;&#x7684;&#x6D88;&#x606F;&#x6D88;&#x5931;&#xFF0C;&#x9700;&#x8981;&#x73A9;&#x5BB6;&#x6253;&#x5F00;&#x804A;&#x5929;&#x680F;&#xFF08;&#x9ED8;&#x8BA4;&#x6309;<code>t</code>&#x6216;<code>/</code>&#x4E5F;&#x80FD;&#x6253;&#x5F00;&#x804A;&#x5929;&#x680F;&#xFF09;&#x67E5;&#x770B;&#x4E4B;&#x524D;&#x7684;&#x4FE1;&#x606F;&#x3002;&#x804A;&#x5929;&#x8BB0;&#x5F55;&#x7684;&#x4E0A;&#x7FFB;&#x6761;&#x6570;&#x662F;&#x6709;&#x9650;&#x5236;&#x7684;&#xFF0C;&#x8D85;&#x8FC7;&#x9650;&#x5236;&#x7684;&#x4FE1;&#x606F;&#x65E0;&#x6CD5;&#x76F4;&#x63A5;&#x67E5;&#x9605;&#xFF0C;&#x53EA;&#x4F1A;&#x4FDD;&#x5B58;&#x5728;log&#x91CC;&#xFF0C;&#x4E4B;&#x540E;&#x5C06;&#x4F1A;&#x7B80;&#x4ECB;log&#x3002;</p>
<p>&#x4E0B;&#x9762;&#x8BE5;&#x90E8;&#x5206;&#x4E3A;&#x8F93;&#x5165;&#x6846;&#xFF0C;&#x9ED8;&#x8BA4;&#x53EF;&#x4EE5;&#x6309;<code>t</code>&#x6216;<code>/</code>&#x5524;&#x51FA;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x5728;&#x5176;&#x4E2D;&#x8F93;&#x5165;&#x6587;&#x5B57;&#x3002;<br>&#x8F93;&#x5165;&#x6587;&#x5B57;&#x4E4B;&#x540E;&#x6309;enter&#x53D1;&#x9001;&#x3002;&#x5982;&#x679C;&#x6587;&#x5B57;&#x4EE5;<code>/</code>&#x5F00;&#x59CB;&#x5219;&#x4E3A;&#x547D;&#x4EE4;&#xFF08;&#x4E0D;&#x7406;&#x4F1A;&#x5F00;&#x5934;&#x90A3;<code>/</code>&#x6267;&#x884C;&#xFF09;&#xFF0C;&#x5426;&#x5219;&#x5219;&#x4E3A;&#x804A;&#x5929;&#x4FE1;&#x606F;&#xFF0C;&#x4F1A;&#x88AB;&#x76F4;&#x63A5;&#x5199;&#x8FDB;&#x804A;&#x5929;&#x680F;&#x5E76;&#x53D1;&#x5E03;&#x7ED9;&#x5176;&#x4ED6;&#x73A9;&#x5BB6;&#x3002;</p>
<blockquote>
<p>&#x804A;&#x5929;&#x680F;&#x662F;&#x652F;&#x6301;&#x5168;&#x9009;&#x3001;&#x590D;&#x5236;&#x7B49;&#x529F;&#x80FD;&#x7684;&#x3002;<br>&#x6BD4;&#x5982;Windows&#x7684;&#x8BDD;&#xFF0C;&#x5168;&#x9009;&#x4E3A;<code>Ctrl + A</code>&#xFF0C;&#x590D;&#x5236;&#x4E3A;<code>Ctrl + C</code>&#xFF0C;&#x9ECF;&#x8D34;&#x4E3A;<code>Ctrl + V</code></p>
<p>MC&#x5185;&#x4E0D;&#x5141;&#x8BB8;&#x76F4;&#x63A5;&#x8F93;&#x5165;<code>&#xA7;</code>&#x5B57;&#x7B26;&#xFF0C;&#x8BF7;&#x4F7F;&#x7528;&#x522B;&#x7684;&#x65B9;&#x5F0F;&#x8F93;&#x5165;&#xFF08;&#x5982;JSON&#x5185;&#x7684;<code>\u00a7</code>&#xFF0C;&#x6216;&#x4F7F;&#x7528;&#x547D;&#x4EE4;&#x51FD;&#x6570;&#x7B49;&#x5916;&#x90E8;&#x8F93;&#x5165;&#x65B9;&#x5F0F;&#xFF09;</p>
</blockquote>
<h2 id="&#x81EA;&#x52A8;&#x8865;&#x5168;">&#x81EA;&#x52A8;&#x8865;&#x5168;</h2>
<p>&#x8F93;&#x5165;&#x547D;&#x4EE4;&#x65F6;&#xFF0C;&#x6309;&#x4E0B;<code>Tab</code>&#x6309;&#x94AE;&#x53EF;&#x8865;&#x5168;&#x5F53;&#x524D;&#x53C2;&#x6570;&#xFF08;&#x9009;&#x62E9;&#x5668;&#x3001;NBT&#x3001;JSON&#x6587;&#x672C;&#x4E0D;&#x652F;&#x6301;&#x8865;&#x5168;&#xFF09;&#x3002;</p>
<p>&#x6BD4;&#x5982;&#x8BF4;&#x5728;&#x8F93;&#x5165;&#x6846;&#x91CC;&#x8F93;&#x5165;&#x4E86;<code>/</code>&#xFF0C;&#x7136;&#x540E;&#x6309;<code>Tab</code>&#xFF0C;&#x4F1A;&#x51FA;&#x73B0;&#x8FD9;&#x6837;&#x7684;&#x8F93;&#x51FA;:<br><img src="images/2.png" alt=""></p>
<p>&#x53EA;&#x8981;&#x73A9;&#x5BB6;&#x6CA1;&#x6709;&#x6309;&#x4E0B;&#x5176;&#x4ED6;&#x6309;&#x94AE;&#xFF08;&#x5207;&#x6362;&#x89C6;&#x7A97;&#x4E5F;&#x662F;&#x6309;&#x4E0B;&#x4E86;&#x5176;&#x4ED6;&#x6309;&#x94AE;&#xFF09;&#xFF0C;&#x518D;&#x6B21;&#x6309;<code>Tab</code>&#x65F6;&#x5C31;&#x4F1A;&#x5207;&#x6362;&#x4E3A;&#x4E0B;&#x4E00;&#x4E2A;&#x9009;&#x9879;&#xFF0C;&#x6BD4;&#x5982;&#x4E0A;&#x65B9;&#x7684;&#x4F8B;&#x5B50;&#x5219;&#x4ECE;<code>/?</code>&#x53D8;&#x4E3A;<code>/advancement</code>&#x3002;<br>&#x5F53;&#x73A9;&#x5BB6;&#x5DF2;&#x7ECF;&#x9009;&#x62E9;&#x5230;&#x6700;&#x540E;&#x4E00;&#x4E2A;&#x9009;&#x9879;&#x4E86;&#xFF0C;&#x518D;&#x6B21;&#x6309;<code>Tab</code>&#x6309;&#x94AE;&#x5219;&#x4F1A;&#x56DE;&#x5230;&#x7B2C;&#x4E00;&#x4E2A;&#x9009;&#x9879;&#x3002;</p>
<p>&#x5982;&#x679C;&#x73A9;&#x5BB6;&#x5728;&#x6309;<code>Tab</code>&#x524D;&#x5DF2;&#x7ECF;&#x5728;&#x5F53;&#x524D;&#x53C2;&#x6570;&#x8F93;&#x5165;&#x4E86;&#x90E8;&#x5206;&#x5B57;&#x7B26;&#xFF0C;&#x6309;<code>Tab</code>&#x5219;&#x4F1A;&#x5BFB;&#x627E;&#x90A3;&#x4E9B;&#x4EE5;&#x5F53;&#x524D;&#x5B57;&#x7B26;&#x5F00;&#x59CB;&#x7684;&#x9009;&#x9879;&#x3002;<br>&#x5982;&#x8F93;&#x5165;&#x4E86;<code>/test</code>&#x7136;&#x540E;&#x6309;<code>Tab</code>&#x7684;&#x8BDD;&#x5219;&#x53EA;&#x4F1A;&#x51FA;&#x73B0;<code>/testfor</code>&#x3001;<code>/testforblock</code>&#x3001;<code>/testforblocks</code>&#x8FD9;&#x51E0;&#x4E2A;&#x9009;&#x9879;&#x3002;<br>&#x8FD9;&#x6837;&#x7684;&#x81EA;&#x52A8;&#x8865;&#x5168;&#x529F;&#x80FD;&#x5728;&#x9700;&#x8981;&#x8F93;&#x5165;&#x8F83;&#x957F;&#x7684;&#x53C2;&#x6570;&#x65F6;&#x662F;&#x5341;&#x5206;&#x6709;&#x6548;&#x7684;&#x3002;</p>
<blockquote>
<p>&#x9002;&#x5F53;&#x4F7F;&#x7528;&#x81EA;&#x52A8;&#x8865;&#x5168;&#x53EF;&#x4EE5;&#x52A0;&#x5FEB;&#x547D;&#x4EE4;&#x7F16;&#x8F91;&#x901F;&#x5EA6;&#xFF0C;&#x5E76;&#x51CF;&#x5C11;&#x9519;&#x8BEF;&#x3002;<br>&#x6BD4;&#x5982;&#x8F93;&#x5165;gamerule&#x662F;&#x8D85;&#x7EA7;&#x5BB9;&#x6613;&#x51FA;&#x73B0;&#x5927;&#x5C0F;&#x5199;&#x9519;&#x8BEF;&#x7684;&#x3002;</p>
</blockquote>
<h2 id="&#x547D;&#x4EE4;&#x6267;&#x884C;&#x5931;&#x8D25;&#x4FE1;&#x606F;">&#x547D;&#x4EE4;&#x6267;&#x884C;&#x5931;&#x8D25;&#x4FE1;&#x606F;</h2>
<p>&#x5728;&#x804A;&#x5929;&#x680F;&#x6267;&#x884C;&#x7684;&#x547D;&#x4EE4;&#x5982;&#x679C;&#x51FA;&#x9519;&#x5C31;&#x4F1A;&#x663E;&#x793A;&#x6267;&#x884C;&#x5931;&#x8D25;&#x4FE1;&#x606F;&#x3002;<br>&#x6709;&#x65F6;&#x5B83;&#x4F1A;&#x76F4;&#x63A5;&#x6307;&#x51FA;&#x547D;&#x4EE4;&#x4E2D;&#x7684;&#x9519;&#x8BEF;&#xFF0C;&#x6BD4;&#x5982;&#xFF1A;</p>
<p><img src="images/3.png" alt=""></p>
<p>&#x5F53;&#x547D;&#x4EE4;&#x65E0;&#x6CD5;&#x627E;&#x5230;&#x76EE;&#x6807;&#x5B9E;&#x4F53;&#x65F6;&#x4E5F;&#x4F1A;&#x663E;&#x793A;&#x5931;&#x8D25;&#x4FE1;&#x606F;&#x3002;<br><img src="images/4.png" alt=""></p>
<hr>
<p>&#x6267;&#x884C;&#x5931;&#x8D25;&#x4FE1;&#x606F;&#x4E5F;&#x6709;&#x4E00;&#x79CD;&#x7279;&#x522B;&#x7528;&#x9014;&#xFF1A;&#x67E5;&#x770B;NBT&#x3002;<br><code>entitydata</code>&#x53CA;<code>blockdata</code>&#x547D;&#x4EE4;&#x5728;&#x6CA1;&#x6709;&#x4FEE;&#x6539;&#x76EE;&#x6807;NBT&#x65F6;&#x4F1A;&#x5F53;&#x4F5C;&#x6267;&#x884C;&#x5931;&#x8D25;&#x5E76;&#x663E;&#x793A;&#x76EE;&#x6807;&#x7684;NBT&#x6807;&#x7B7E;&#xFF0C;&#x56E0;&#x6B64;&#x6211;&#x4EEC;&#x80FD;&#x591F;&#x5982;&#x6B64;&#x67E5;&#x770B;NBT&#xFF1A;</p>
<pre><code>/entitydata @e {}
</code></pre><p>&#x8F93;&#x51FA;:<br><img src="images/5.png" alt=""></p>
<blockquote>
<p>&#x7EA2;&#x8272;&#x4E00;&#x5927;&#x7247;&#xFF0C;&#x5E78;&#x597D;NBT&#x4E0D;&#x7B97;&#x592A;&#x590D;&#x6742;&#x8FD8;&#x80FD;&#x770B;&#x3002;<br>&#x4E4B;&#x540E;&#x7684;&#x7AE0;&#x8282;&#x5C06;&#x4F1A;&#x4ECB;&#x7ECD;&#x600E;&#x4E48;&#x628A;&#x8FD9;&#x8F93;&#x51FA;&#x62BD;&#x53D6;&#xFF1A;&#x4F7F;&#x7528;Log&#x53CA;&#x547D;&#x4EE4;&#x65B9;&#x5757;&#x3002;</p>
</blockquote>
<h1 id="log">Log</h1>
<p>Log&#x6587;&#x4EF6;&#x4F4D;&#x4E8E;<code>/.minecraft/logs/</code>&#x91CC;&#xFF0C;&#x4E00;&#x822C;&#x6211;&#x4EEC;&#x8981;&#x770B;&#x6700;&#x65B0;&#x7684;&#x8BB0;&#x5F55;&#x7684;&#x8BDD;&#x90FD;&#x4F1A;&#x770B;<code>latest.log</code>&#x3002;</p>
<p>Log&#x6587;&#x4EF6;&#x672C;&#x8D28;&#x4E0A;&#x662F;&#x4E00;&#x4E2A;&#x7EAF;&#x6587;&#x672C;&#x6587;&#x4EF6;&#x3002;Log&#x6587;&#x4EF6;&#x8BB0;&#x5F55;&#x4E86;&#x6E38;&#x620F;&#x5185;&#x5404;&#x7C7B;&#x8F93;&#x51FA;&#x548C;&#x91CD;&#x8981;&#x4E8B;&#x60C5;&#x7684;&#x8BE6;&#x7EC6;&#x8D44;&#x6599;&#x3001;&#x65F6;&#x95F4;&#xFF0C;&#x6BD4;&#x5982;&#x8BF4;&#x662F;&#x52A0;&#x8F7D;&#x6587;&#x4EF6;&#x9519;&#x8BEF;&#x3001;&#x804A;&#x5929;&#x4FE1;&#x606F;&#x3001;&#x547D;&#x4EE4;&#x8F93;&#x51FA;&#x7B49;&#x7B49;&#x3002;</p>
<hr>
<p>&#x6BD4;&#x5982;&#x52A0;&#x8F7D;&#x6587;&#x4EF6;&#x9519;&#x8BEF;&#xFF0C;&#x53EF;&#x80FD;&#x4F1A;&#x51FA;&#x73B0;&#x7C7B;&#x4F3C;&#x8FD9;&#x6837;&#x7684;&#x4FE1;&#x606F;&#xFF08;&#x592A;&#x957F;&#x4E86;&#x53EA;&#x653E;&#x4E0A;&#x9762;&#x4E00;&#x90E8;&#x5206;&#xFF09;&#xFF1A;</p>
<pre><code>[19:20:09] [Server thread/ERROR]: Couldn&apos;t read custom function abcd:test2 from C:\Users\Administrator\AppData\Roaming\.minecraft\saves\TEST\data\functions\abcd\test2.mcfunction
java.lang.IllegalArgumentException: Unknown or invalid command &apos;?scoreboard&apos;
    at bm.a(SourceFile:39) ...
</code></pre><p>&#x770B;&#x4E0A;&#x53BB;&#x633A;&#x5413;&#x4EBA;&#x7684;&#xFF0C;&#x5176;&#x5B9E;&#x8D44;&#x6599;&#x975E;&#x5E38;&#x5BB9;&#x6613;&#x770B;&#xFF1A;</p>
<ul>
<li>&#x65F6;&#x95F4;&#xFF1A;&#x65F6;&#x95F4;&#x5C31;&#x662F;[19:20:09]&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x5F53;&#x5929;&#x7684;&#x665A;&#x4E0A;&#x4E03;&#x70B9;&#x4E8C;&#x5341;&#x5206;</li>
<li>&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x9519;&#x8BEF;&#xFF1A;[Server thread/ERROR] &#x8FD9;&#x91CC;&#x90FD;&#x5199;&#x7740;&#x662F;Error&#x4E86;</li>
<li>&#x5565;&#x9519;&#x8BEF;&#xFF1A;Couldn&apos;t read custom function abcd:test2 from &#xFF08;&#x8DEF;&#x5F84;&#xFF09;&#x3002;&#x4E5F;&#x5C31;&#x662F;&#x8BF4;&#x4E0D;&#x80FD;&#x52A0;&#x8F7D;&#x5728;&#xFF08;&#x8DEF;&#x5F84;&#xFF09;&#x7684;&#x81EA;&#x5B9A;&#x4E49;&#x547D;&#x4EE4;&#x51FD;&#x6570;<code>abcd:test2</code></li>
<li>&#x9519;&#x8BEF;&#x539F;&#x56E0;&#xFF1A; Unknown or invalid command &apos;?scoreboard&apos;&#x3002;&#x672A;&#x77E5;&#x6216;&#x9519;&#x8BEF;&#x547D;&#x4EE4;<code>?scoreboard</code>&#x3002;</li>
</ul>
<blockquote>
<p>&#x5176;&#x5B9E;&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x633A;&#x5E38;&#x89C1;&#x7684;&#x95EE;&#x9898;&#x3002;&#x8FD9;&#x662F;&#x56E0;&#x4E3A;&#x547D;&#x4EE4;&#x51FD;&#x6570;&#x6587;&#x4EF6;&#x9009;&#x62E9;&#x4E86;<code>UTF-8 with BOM</code>&#xFF0C;&#x7136;&#x540E;&#x6587;&#x4EF6;&#x5F00;&#x5934;&#x591A;&#x4E86;3&#x4E2A;Byte&#xFF0C;&#x6E38;&#x620F;&#x5C31;&#x4E0D;&#x8BA4;&#x4E86;&#x3002;&#x89E3;&#x51B3;&#x65B9;&#x6CD5;&#x4E3A;...&#x7528;<code>UTF-8 without BOM</code>&#x50A8;&#x5B58;&#x3002;</p>
</blockquote>
<hr>
<p>&#x547D;&#x4EE4;&#x8F93;&#x51FA;&#x3001;&#x9519;&#x8BEF;&#x53CA;&#x6240;&#x6709;&#x804A;&#x5929;&#x680F;&#x8F93;&#x51FA;&#x90FD;&#x662F;&#x8FD9;&#x6837;&#x7684;&#xFF1A;</p>
<pre><code>[13:18:21] [Client thread/INFO]: [CHAT] The data tag did not change: {HurtByTimestamp:0,Attributes:[{Base:30.0d,Name:&quot;generic.maxHealth&quot;},{Base:0.0d,Name:&quot;generic.knockbackResistance&quot;},{Base:0.699999988079071d,Name:&quot;generic.movementSpeed&quot;},{Base:0.0d,Name:&quot;generic.armor&quot;},{Base:0.0d,Name:&quot;generic.armorToughness&quot;},{Base:16.0d,Name:&quot;generic.followRange&quot;}],APX:5,Invulnerable:0b,FallFlying:0b,APY:81,APZ:6,PortalCooldown:0,AbsorptionAmount:0.0f,FallDistance:0.0f,DeathTime:0s,AttachFace:2b,HandDropChances:[0.085f,0.085f],PersistenceRequired:0b,Peek:0b,Motion:[0.0d,0.0d,0.0d],Leashed:0b,UUIDLeast:-7415565809278513862L,Health:30.0f,Color:0b,LeftHanded:0b,Air:300s,OnGround:0b,Dimension:0,NoAI:1b,Rotation:[180.0f,0.0f],HandItems:[{},{}],ArmorDropChances:[0.085f,0.085f,0.085f,0.085f],UUIDMost:-2813612295629749725L,Pos:[5.5d,81.0d,6.5d],Fire:0s,ArmorItems:[{},{},{},{}],CanPickUpLoot:0b,HurtTime:0s}
</code></pre><p><code>[Client thread/INFO]: [CHAT]</code>&#x4EE3;&#x8868;&#x4E86;&#x540E;&#x9762;&#x8FD9;&#x6BB5;&#x4FE1;&#x606F;&#x662F;&#x5728;&#x804A;&#x5929;&#x680F;&#x91CC;&#x7684;&#x3002;</p>
<p>&#x7531;&#x4E8E;&#x662F;&#x5728;&#x6587;&#x4EF6;&#x91CC;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x590D;&#x5236;&#x8FD9;&#x6BB5;&#x6587;&#x5B57;&#x7136;&#x540E;&#x53BB;&#x505A;&#x522B;&#x7684;&#x5904;&#x7406;&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="command.html" class="navigation navigation-prev " aria-label="Previous page: 3 如何执行命令">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="cb.html" class="navigation navigation-next " aria-label="Next page: 3.2 命令方块简介">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"3.1 聊天栏","level":"1.4.1","depth":2,"next":{"title":"3.2 命令方块简介","level":"1.4.2","depth":2,"path":"command/cb.md","ref":"command/cb.md","articles":[]},"previous":{"title":"3 如何执行命令","level":"1.4","depth":1,"path":"command/command.md","ref":"command/command.md","articles":[{"title":"3.1 聊天栏","level":"1.4.1","depth":2,"path":"command/chat.md","ref":"command/chat.md","articles":[]},{"title":"3.2 命令方块简介","level":"1.4.2","depth":2,"path":"command/cb.md","ref":"command/cb.md","articles":[]},{"title":"3.3 命令函数","level":"1.4.3","depth":2,"path":"command/function.md","ref":"command/function.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["expandable-chapters","lb2br","-sharing"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"expandable-chapters":{},"lb2br":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"命令进阶","language":"en","gitbook":"*","description":"一份Minecraft命令教程"},"file":{"path":"command/chat.md","mtime":"2017-07-30T07:11:45.401Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-11-08T10:37:55.949Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

